home *** CD-ROM | disk | FTP | other *** search
- on getPrefThingy
- global myFile
- set gOSDir to getOSDirectory()
- put gOSDir & "\" into field "OSPath"
- set i to gOSDir & "\Prefs.TXT"
- set DaPath to i
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- openFile(myFile, DaPath, 1)
- set thePrefs to readLine(myFile)
- put thePrefs into field "the preferences"
- closeFile(myFile)
- set myFile to 0
- put item 1 of field "The Preferences" into field "cdDrive"
- put item 2 of field "The Preferences" into field "browserSelect"
- put item 3 of field "The Preferences" into field "pathtoproj"
- put item 4 of field "the preferences" into field "emailSelect"
- end
-
- on doPrefThingy
- global myFile
- if objectp(myFile) then
- set myFile to 0
- end if
- set myFile to new(xtra("fileio"))
- set gOSDir to getOSDirectory()
- set finalPath to gOSDir & "\"
- openFile(myFile, finalPath & "Prefs.TXT", 0)
- if status(myFile) = 0 then
- delete(myFile)
- closeFile(myFile)
- end if
- createFile(myFile, finalPath & "Prefs.TXT")
- openFile(myFile, finalPath & "Prefs.TXT", 0)
- writeString(myFile, field "cdDrive" & "," & field "browserSelect" & "," & field "pathToProj" & "," & field "emailSelect")
- end
-